package com.itheima.controller;

import org.springframework.web.bind.annotation.*;


@RestController
public class HelloController {

    //    @RequestMapping(value = "/hi", method = RequestMethod.GET)
//    public String hi(@RequestParam(value = "id") String id) {
//        String mid = "[29:林朝恩:A39]";
//        return "Hello World, I'm from hello provider!" + mid + id;
//    }
    @GetMapping("/hello")
    public String hello(String name) {
        String msg = "[31:林泽皓:A55]" + name;
        return msg;
    }

    @GetMapping("/hi")
    public String hi(int age) {
        String msg = "[31:林泽皓:A55]" + age;
        return msg;
    }


}
